#include <string>
#include "SWF.h"
#include "SwfTagWriter.h"

class CSwfFileWriter : CSwfWriter
{
public:
	CSwfFileWriter(const string a_FileName);
	~CSwfFileWriter();

	void Test();
	void TestAsm(CSwfTagWriter a_AsmWriter);
	
protected:
	void WriteHeader(UI8 a_Version, UI16 a_Width, UI16 a_Height, UI8 a_FrameRate, UI16 a_FrameCount);
	void WriteFileLength();
	void WriteTagData(UI16 a_TagType, const CSwfTagWriter a_TagStream);
	void WriteTagData(UI16 a_TagType);

private:
	long int m_FileLengthPos;
};